package com.yulinlin.admin.modules.ad.controller;

import com.yulinlin.common.controller.SuperController;
import com.yulinlin.common.domain.ResponseVo;
import io.swagger.annotations.*;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.RequestMethod;

import com.yulinlin.admin.modules.ad.domain.AdContentEntity;

import com.yulinlin.admin.modules.ad.service.IAdContentService;
import com.yulinlin.admin.modules.ad.domain.config.AdContentConfig;
import com.yulinlin.admin.modules.ad.domain.page.AdContentPage;

@Api(tags = "广告内容")
@RestController
@RequestMapping("/ad/adContent")
public class AdContentController extends SuperController<AdContentEntity,AdContentPage>  {


    @Autowired
    private IAdContentService service;

    @ApiOperation("获取配置数据")
    @RequestMapping(value = "config",method = RequestMethod.POST)
    public ResponseVo<AdContentConfig> config() {
        AdContentConfig config =AdContentConfig.newInstance();
        return ResponseVo.newInstance(config);
    }


}
